home *** CD-ROM | disk | FTP | other *** search
- Path: misery.millcomm.com!not-for-mail
- From: llucius@millcomm.com (Yambo)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Arexx problem with vars
- Date: 17 Jan 1996 06:30:04 GMT
- Organization: the 9672-R83
- Message-ID: <4di51c$g7h@misery.millcomm.com>
- References: <68771100@0humpty.tomate.tng.oche.de>
- NNTP-Posting-Host: mill2.millcomm.com
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- Andreas Mixich (humpty@TOMATE.TNG.OCHE.DE) wrote:
- :
- : list.0 = list.0 + 1
- :
- : This worked.
- :
- : Now I have to seperate between two lists. So I did a
- :
- : IF valuexyz = xyz THEN
- : x = L
- : ELSE
- : x = R
- :
- : x||list.0 = x||list.0 + 1
- :
- Hey Andreas, me again...
-
- Creating a variable name in this way (||) will not work. There are ways
- to get the kind of name (RList/LList) you want, but how about trying this?
-
- list.x.0 = list.x.0 + 1
-
- where:
- x = L or R
-
- This would give variable names like:
-
- list.L.0 or list.R.0
-
- But, if you really must have RList and LList try:
-
- INTERPRET z'list.0 = 'z'list.0 + 1'
-
- This should give you what you want, but IMHO it's a bit harder to read.
- Notice I used "z" instead of "x". Using "x" in the above would produce
- an error since ARexx would treat the seconds "x" to indicate a hex
- string. You could use the "||" operator to get arounds this problem or
- just change the "x" to something else.
-
- --
- __ Y_ a_ m_ b_ o_ | The leanest, meanest, fightinest sweet tater on Earth!
- oo o oo o o |
- o o o | llucius@millcomm.com
- o oo o o |
- -- -- -- -- -- -- | http://www.millcomm.com/~llucius/index.html (coming soon)
-
-